package com.aos.iot.socket.common.message;

import cn.hutool.core.lang.Dict;
import lombok.Data;

import java.net.InetSocketAddress;
import java.net.SocketAddress;

@Data
public class Message {

    private String msgId;

    private String context;

    private String channelId;

    private String protocol;

    private Direction direction;

    private String cmd;

    private String dataContext;

    private Dict data;

    private SocketAddress sender;

    public enum Direction {
        UP, DOWN, BROADCAST
    }
}
